﻿<!DOCTYPE html>
<!--管线打开作业安全许可证审批-->
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="/static/js/common.js"></script>

    <script src="../../static/js/Mock/JobLicenseApp_wanglr.js"></script>
    <script src="../../static/js/Resource/JobLicenseApp_wanglr.js"></script>
    <style>
        body {
            padding-bottom: 10px;
        }

        .toptitle label {
            margin-left: 20px;
        }

        .align_left {
            text-align: left;
        }

        table {
            width: 100%;
            border-top: 1px solid;
            border-left: 1px solid;
            text-align: center;
            /*border-right: none;*/
        }

            table td {
                border-right: 1px solid;
                border-bottom: 1px solid;
                /*height:38px;*/
                padding: 10px;
            }

        .floatDiv {
            position: fixed;
            top: 10%;
            left: 1px;
            border: 1px solid #ccc;
            background: #EBEEF5;
            cursor: pointer;
            width: 14px;
            font-size: 14px;
            padding: 10px;
        }
    </style>

</head>
<body>
    
<div id="app" v-cloak>   
        <div @click="DialogInput" class="floatDiv">
            相关表格
        </div>
        <div style="width:100%;text-align:center ">
            <label style="font-weight:bold">管线打开作业安全许可证审批</label>
        </div>
        <div style="width:100%;text-align:right" class="toptitle">
            <label>2018-09-09</label>
            <label>Q/G11-018-R01</label>
            <label>No.：{{id}}</label>
        </div>
        <el-form :model="Form" status-icon style="margin-top:5px;width:100%" :rules="rules" ref="ruleForm">
            <table cellpadding="0" cellspacing="0" style="">
                <tr>
                    <td width="10%" rowspan="5">{{GeneralLiftingWorkSafety.WorkContent}}</td>
                    <td width="15%">{{WorkPlanChecklist.UseUnit}}</td>
                    <td width="30%">{{Form.UseUnit}}</td>
                    <td width="15%">{{SimpleLiftingOperation.TerritorialDepartment}}</td>
                    <td width="30%">{{Form.TerritorialDepartment}}</td>
                </tr>
                <tr>
                    <td>{{HighWorkSafetyPermit.WorkingArea}}</td>
                    <td>{{Form.WorkingArea}}</td>
                    <td>{{PipelineOpenOperationSafetyLicense.JobLocation}}</td>
                    <td>{{Form.JobLocation}}</td>
                </tr>
                <tr>
                    <td colspan="4" class="align_left">{{PipelineOpenOperationSafetyLicense.WorkContent+mark.m}}{{Form.WorkContent}}</td>
                </tr>
                <tr>
                    <td colspan="4" class="align_left">{{PipelineOpenOperationSafetyLicense.AttachEquipmentJSA+mark.m}}{{Form.AttachEquipmentJSA}}</td>
                </tr>
                <tr>
                    <td colspan="4" class="align_left"><el-checkbox v-model="Form.contractor">{{HotWorkSafetyLicense.contractor}}</el-checkbox></td>
                </tr>
                <tr>
                    <td rowspan="2">{{PipelineOpenOperationSafetyLicense.HazardIdentification}}</td>
                    <td colspan="4" class="align_left">{{PipelineOpenOperationSafetyLicense.DangerousMedium+mark.m}}{{Form.DangerousMedium}}</td>
                </tr>
                <tr>
                    <td colspan="4">
                        <el-checkbox-group v-model="Form.HazardIdentificationChecked">
                            <el-checkbox v-for="v in HazardIdentifications" :label="v.value" :key="v.key">{{v.value}}</el-checkbox>
                        </el-checkbox-group>

                    </td>
                </tr>
                <tr>
                    <td rowspan="3">{{TemporaryOperationSafetyLicense.SafetyMeasures}}</td>
                    <td>{{PipelineOpenOperationSafetyLicense.CleanUp}}</td>
                    <td colspan="3">
                        <el-checkbox-group v-model="Form.CleanUpChecked">
                            <el-checkbox v-for="v in CleanUps" :label="v.value" :key="v.key">{{v.value}}</el-checkbox>
                        </el-checkbox-group>
                    </td>
                </tr>
                <tr>
                    <td>{{PipelineOpenOperationSafetyLicense.Isolation}}</td>
                    <td colspan="3">
                        <el-checkbox-group v-model="Form.IsolationChecked">
                            <el-checkbox v-for="v in Isolations" :label="v.value" :key="v.key">{{v.value}}</el-checkbox>
                        </el-checkbox-group>
                    </td>
                </tr>
                <tr>
                    <td>{{PipelineOpenOperationSafetyLicense.GasLeakControlDevice}}</td>
                    <td colspan="3">

                        <el-checkbox-group v-model="Form.GasLeakControlDeviceChecked">
                            <el-checkbox v-for="v in GasLeakControlDevices" :label="v.value" :key="v.key">{{v.value}}</el-checkbox>
                        </el-checkbox-group>
                    </td>
                </tr>
                <tr>
                    <td>{{PipelineOpenOperationSafetyLicense.PersonalProtectiveEquipment}}</td>
                    <td colspan="4">
                        <el-checkbox-group v-model="Form.PersonalProtectiveEquipmentChecked">
                            <el-checkbox v-for="v in PersonalProtectiveEquipments" :label="v.value" :key="v.key">{{v.value}}</el-checkbox>
                        </el-checkbox-group>
                    </td>
                </tr>
                <!--
    <!--<tr>
        <td colspan="5" class="align_left">{{PipelineOpenOperationSafetyLicense.BasedDatabaseManagementRequirements}}</td>
    </tr>-->

            </table>
            <table cellpadding="0" cellspacing="0" style="border-top:none;">
                <!--<tr>
                    <td width="10%">{{SecurityAndRiskConfirmationCard.id}}</td>
                    <td width="60%">{{PipelineOpenOperationSafetyLicense.ControlRequirements}}</td>
                    <td width="15%">{{ConfinedSpace.Implementation}}</td>
                    <td width="15%">{{ConfinedSpace.ConfirmerSignature}}</td>
                </tr>
                <tr>
                    <td>1</td>
                    <td class="align_left">1.1、完善皮管捆扎合格标准；</td>
                    <td>未落实</td>
                    <td><signature v-model="Form.ControlRequirementser1"></td>
                </tr>
                <tr>
                    <td>2</td>
                    <td class="align_left">
                        2.1、人员入职前进行三级教育<br />
                        2.2、入职后，每月车间主任组织一次安全考核、培训和安全例会，进行安全经验分享和知识分享；
                    </td>
                    <td>未落实</td>
                    <td><signature v-model="Form.ControlRequirementser2"></td>
                </tr>-->

                <tr>
                    <td colspan="4" class="align_left">
                        本人确认收到许可证，了解作业对本单位的影响，将安排人员对此项工作给予关注和配合并和相关各方保持联系。<br />
                        {{PipelineOpenOperationSafetyLicense.AffectedParties+mark.m}}<br />

                        <span style="width:45%; float:left; text-align:left;height:40px;">
                            <signature v-model="Form.AffectedParties"></signature>
                        </span>
                        <span style="width:45%; float:left; text-align:left;height:40px;">
                            2018-09-09 14:14:14
                        </span>
                    </td>

                </tr>
            </table>
            <table cellpadding="0" cellspacing="0" style="border-top:none;">
                <tr>
                    <td width="10%" rowspan="4">许可证的签批{{GeneralLiftingWorkSafety.WorkContent}}</td>
                    <td width="50%" class="align_left">我保证我及我的下属，已经了解本次管线（设备）打开作业的JSA的要求和此许可证的相关内容，并保证在作业开始前确认各项安全措施已落实，在作业过程中执行相关安全规定，在作业结束时及时通知属地部门负责人。</td>
                    <td width="40%" class="align_left">{{ConfinedSpace.applicant+mark.m}} <signature v-model="Form.applicant"></td>
                </tr>
                <tr>
                    <td rowspan="2" class="align_left">      本人在工作开始前，已掌握本次管线（设备）打开作业的内容及JSA要求，并对作业内容及安全措施进行了现场检查，确认各项安全措施已落实。</td>
                    <td class="align_left">{{PipelineOpenOperationSafetyLicense.Operator+mark.m}}<signature v-model="Form.Operator"></td>
                </tr>
                <tr>
                    <td class="align_left">{{PipelineOpenOperationSafetyLicense.Guardian+mark.m}}<signature v-model="Form.Guardian"></td>
                </tr>
                <tr>
                    <td class="align_left">本人已审核与本许可证相关的文件，确认符合管线（设备）打开作业安全管理规定的要求，并对作业现场进行了检查，确认安全措施已落实，同意作业。</td>
                    <td class="align_left">{{PipelineOpenOperationSafetyLicense.Approver+mark.m}}<signature v-model="Form.Approver"></td>
                </tr>
                <tr>
                    <td colspan="3" class="align_left">
                        我已确认，本次作业已全部结束，现场已得到妥善处理，本票证关闭。<br />
                        {{JobLicenseManagement.JobManagerProple+mark.m}}<signature v-model="Form.JobManagerProple">
                    </td>
                </tr>
            </table>


            <el-row>
                <el-form-item style="text-align:center; padding-top:5px">
                    <el-button type="primary" @click="onSubmitForm('ruleForm')">{{col.btnCommit}}</el-button>
                    <el-button type="primary" @click="parent.ListItem.dialogVisible=false">{{col.btnBack}}</el-button>
                </el-form-item>
            </el-row>
        </el-form>
        <el-dialog :title="DialogTitle" fullscreen="true" :visible.sync="ListItem.dialogVisible" width="80%" height="80%" top="10vh">
            <iframe ref="iframe" :src="ListItem.InputUrl" style="height:95%;width:100%" frameborder="0"></iframe>
        </el-dialog>
    </div>
    <script type="text/javascript">

        app = new Vue({
            el: '#app',
            data: function () {
                return {
                    id: '123',
                    DialogTitle: '相关表格',
                    ListItem: ListItem,
                    Form: {
                        JobManagerProple: '',//作业负责人
                        Approver: '',//审批人
                        Guardian: '',//监护人
                        Operator: '',//作业人
                        applicant: '',//申请人（作业负责人）
                        ControlRequirementser1: '',//控制要求确认人
                        ControlRequirementser2: '',//控制要求确认人
                        AffectedParties: '',//受影响相关方
                    },
                    rules: {},
                }
            },
            methods: {
                //解決edge下select bug
                visibleChange: function (isVisible) {
                    visibleChange(isVisible)
                },
                getData: function () {
                    getData(this, '/api/PipelineOpenJob/getMock?id=123');
                },
                DialogInput: function () {
                    DialogShow(this, 'xg', "PipelineOpenJobTable.html", this.id);
                },
                //提交数据
                onSubmitForm: function (formName) {
                    var mythis = this;
                    this.$refs[formName].validate(function (valid) {
                        //验证通过
                        if (valid) {
                            onSubmitForm(this, '/api/PipelineOpenJob/Save', mythis.Form);
                        } else {
                            //验证失败
                            return false;
                        }
                    });
                },
            },
            mounted: function () {

                this.getData();

            }
        });
    </script>

</body>
</html>